package fr.alma.trajectory.main;

import javax.swing.SwingUtilities;

import fr.alma.trajectory.calculating.Calculator;
import fr.alma.trajectory.calculating.ICalculator;
import fr.alma.trajectory.gui.GUI;
import fr.alma.trajectory.gui.IGUI;
import fr.alma.trajectory.rendering.IViewer;
import fr.alma.trajectory.rendering.Viewer;

public class Trajectory {
	
	public static void main(String[] args){
		
		SwingUtilities.invokeLater(new Runnable() {
			
			@Override
			public void run() {

				//Initialisation des composants
				IViewer viewer = new Viewer();
				ICalculator computer = new Calculator();
				
				//Passage des composants dans le compo MyFrame par injection de dependance
				IGUI gui = new GUI(viewer, computer);
				gui.display();
			
			}
			
		});
	}

}
